package com.jhgsys.internal.hazard.service;

import com.jhgsys.internal.hazard.dto.HazardReportMessageDto;
import com.jhgsys.internal.hazard.entity.HazardReportMessage;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author zhangwei
 * @date 2024-09-12 09:55:48
 */
public interface IHazardReportMessageService extends IService<HazardReportMessage> {
    /**
     * 查询（分页）
     * @author zhangwei
     * @date 2024-09-12 09:55:48
     * @param request QueryRequest
     * @param hazardReportMessage hazardReportMessage
     * @return IPage<HazardReportMessage>
     */
    IPage<HazardReportMessage> findHazardReportMessagePage(QueryRequest request, HazardReportMessage hazardReportMessage);

    /**
     * 查询（所有）
     * @author zhangwei
     * @date 2024-09-12 09:55:48
     * @param hazardReportMessage hazardReportMessage
     * @return List<HazardReportMessage>
     */
    List<HazardReportMessageDto> findHazardReportMessageList(HazardReportMessage hazardReportMessage);

    /**
    * 根据ID查询
    * @author zhangwei
    * @date 2024-09-12 09:55:48
    * @param id
    * @return HazardReportMessage
    */
    HazardReportMessage findHazardReportMessageById(String id);

    /**
     * 新增
     * @author zhangwei
     * @date 2024-09-12 09:55:48
     * @param hazardReportMessage hazardReportMessage
     */
    boolean createHazardReportMessage(HazardReportMessage hazardReportMessage);

    /**
     * 修改
     * @author zhangwei
     * @date 2024-09-12 09:55:48
     * @param hazardReportMessage hazardReportMessage
     */
    boolean updateHazardReportMessage(HazardReportMessage hazardReportMessage);

    /**
     * 逻辑删除
     * @author zhangwei
     * @date 2024-09-12 09:55:48
     * @param hazardReportMessageIds hazardReportMessageIds
     */
    void deleteHazardReportMessage(String hazardReportMessageIds);

    /**
    * 物理删除
    * @author zhangwei
    * @date 2024-09-12 09:55:48
    * @param hazardReportMessageIds hazardReportMessageIds
    */
    boolean physicallyDeleteHazardReportMessage(String hazardReportMessageIds);
}
